﻿@using NGroup.VTL.Models;
@using System.Collections.Generic;
@model List<NewsModel>
@{
    ViewBag.Title = @Lang.tintuc_danhsach_pageheader;
    PagingInfoModel pagingInfo = ViewBag.PagingInfo as PagingInfoModel;
}
@if (Model != null && Model.Count > 0)
{
    <div class="art-post art-block">
        <div class="art-post-body">
            <div class="art-post-inner">
                @Html.Partial("gioi_thieu_cty")
                <h1 class="art-postheader">
                    <span class="componentheading">@Lang.tintuc_danhsach_cattitle</span>
                </h1>
            </div>
            <div class="cleared">
            </div>
        </div>
        <table class="blog" cellpadding="0" cellspacing="0" width="100%">
            <tbody>
                <tr>
                    <td valign="top">
                        <div>
                            <div class="art-post">
                                <div class="art-post-body">
                                    @foreach (var item in Model)
                                    {
                                        <div class="art-post-inner">
                                            <h2 class="art-postheader">
                                                <a href="/tin-tuc/chi-tiet/@item.UniqueString" class="PostHeader">
                                                    @item.Title</a>
                                            </h2>
                                            <div class="art-postcontent">
                                                <!-- article-content -->
                                                <div class="art-article">
                                                    <div style="text-align: justify;">
                                                        <a href="/tin-tuc/chi-tiet/@item.UniqueString">
                                                            <img alt="@item.Title" src="@item.ImageSmallURL" align="left" style="width:225px; height:140px; margin:0px 6px;" border="0"></a><p>
                                                                @Html.Raw(item.BriefContent) .....</p>
                                                    </div>
                                                </div>
                                                <span class="article_separator">&nbsp;</span>
                                                <!-- /article-content -->
                                            </div>
                                            <div class="cleared">
                                            </div>
                                        </div>
                                        <hr />
                                    }
                                    <div class="cleared">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- BEGIN PAGE NAVIGATION -->
        @using (Html.BeginForm("danh_sach", "tin_tuc", FormMethod.Post, new { id = "frmPaging" }))
        {
            @Html.Partial("PagingPartial", pagingInfo)
        }<!-- END PAGE NAVIGATION -->
    </div>
}
